<!DOCTYPE html>
<html>
<head>
    <title>新浪布局</title>
    <style>
        .nav{
            height: 41px;
            background-color: #ededed;
            border-top: orange 3px solid;
            border-bottom: 1px solid rgb(187, 187, 187);
        }
        .nav a{
            color: black;
            height: 41px;
            display: inline-block;
            text-decoration: none;
            line-height: 41px;
            padding: 0 20px;
        }
        .nav a:hover{
            color: orange;
            background-color: rgba(172, 172, 172, 0.623);
        }
        .header{
            width: 800px;
            height: 50px;
            margin: 50px auto;
            background-color: black;
        }
    </style>
</head>
<body>
    <div class="nav">
        <a href="#">设为首页</a>
        <a href="#">手机新浪网</a>
        <a href="#">移动客户端</a>
        <a href="#">博客</a>
        <a href="#">微博</a>
        <a href="#">关注我</a>
    </div>
    <div class="header"></div>
</body>
</html>